<?php


namespace app\common\business;


use app\common\model\mysql\SpecsValue;
use think\Exception;

class Specs extends BusBase
{
    protected $model = null;

    public function __construct()
    {
        $this->model = new SpecsValue();
    }

    public function getBySpecsId($specs_id)
    {
        try {
            $res = $this->model->getNormalBySpecsId($specs_id);
        } catch (Exception $e) {
            return [];
        }


        return $res->toArray();
    }



    public function del($specs_id)
    {
        try {
            $this->model->del($specs_id);
        } catch (Exception $e) {
            return false;
        }

        return true;
    }


}